
 <%@all_categories.each do |category| -%>

	   		<div class="links">
         		<div class="category">
                	<div class="category-image">
                      <%=image_tag category.stripped_name+".png",:border=>0, :height=>20 -%>
                    	                    </div>
                    <div class="category-text">
                    	<a href="javascript:openAjaxConfirm2('<%= category.stripped_name %>');"><%=  (category.name) %> </a>
                    </div>
                </div>
            <%category.sub_categories.each do |sub_category| -%>
         		<div class="sub-category">
                	<a href="javascript:openAjaxConfirm22('<%= category.stripped_name %>','<%=sub_category.stripped_name %>');"><%=h(sub_category.name) -%></a>
                </div>
            <%end%>
           </div>
 <%end%>

